package cn.jbolt.ai.core.chain.node.start;

import cn.jbolt.util.JSONUtil;
import com.fasterxml.jackson.databind.JsonNode;

public class StartFromUserInputConfig {


    private String outputField;

    public String getOutputField() {
        return outputField;
    }

    public void setOutputField(String outputField) {
        this.outputField = outputField;
    }

    public static StartFromUserInputConfig from(JsonNode jsonNode) {
        return JSONUtil.toObject(jsonNode, StartFromUserInputConfig.class);

    }

    //  对象转换为 JSON 字符串的方法
    public static JsonNode getDefaultConfig() {
        return JSONUtil.toJsonObject(new StartFromUserInputConfig());
    }
}
